]> dgit.raspbian.org Git - gnome-shell.git/commit
panel: Fix a JS warning
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 13 Jun 2017 02:46:37 +0000 (04:46 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 13 Jul 2017 15:23:54 +0000 (17:23 +0200)
commit28d098394acff4d9d9ca0651edd64fd626a636bc
treea88f94ddcaebe81be26d4abde1cce15b4d7fb320
parent755698a756668c251b2976389860a89a9d0da345
panel: Fix a JS warning

We need to track the open-status of indicator menus, but don't want
to hook up signals more than once, so we check for the handler ID
we store on the object. As the property is only defined once we did
set up the signal connection, this check now logs a warning. We
can avoid it by checking for the existence of the property rather
than a particular value.

https://bugzilla.gnome.org/show_bug.cgi?id=781471
js/ui/panel.js